package com.hqx.oop.inherit;

public class Test {
    public static void main(String[] args) {
//        Children c = new Children();
////        Base b = new Children();
//        Base b = c;
//        System.out.println(b.s);
//        System.out.println(b.m);
//        b.staticTest();
//        System.out.println(c.s);
//        System.out.println(c.m);
//        c.staticTest();

//        Base base = new Children();
//        Children child = (Children) base;

        Base bases = new Base();
        if(bases instanceof Children) {
            System.out.println("可以转换");
        } else {
            System.out.println("不可以转换");
        }
    }

}
